//
//  BVAboutUsViewController2ViewController.m
//  BuyVegetables1
//
//  Created by zhuzi on 16/11/4.
//  Copyright © 2016年 YSC. All rights reserved.
//

#import "BVAboutUsViewController.h"
#import "BVConst.h"
@interface BVAboutUsViewController ()

@end

@implementation BVAboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setUI];
    [self setNav];
}
-(void)setNav{
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"back"] style:UIBarButtonItemStyleDone target:self action:@selector(backClick)];
}
-(void)setUI{
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    UILabel * titleLabel = [[UILabel alloc]init];
    [self.view addSubview:titleLabel];
    titleLabel.textColor = BVBaseOrangeColor;
    titleLabel.font = [UIFont systemFontOfSize:17];
    titleLabel.text = @"精菜让你生活更精彩";
    titleLabel.sd_layout
    .topSpaceToView(self.view,100)
    .centerXIs(self.view.centerX)
    .autoHeightRatio(0);
    [titleLabel setSingleLineAutoResizeWithMaxWidth:200];
    
    UIImageView * img = [[UIImageView alloc]init];
    img.image = [UIImage imageNamed:@"qrCode1"];
    [self.view addSubview:img];
    img.sd_layout
    .topSpaceToView(titleLabel,10)
    .centerXIs(self.view.centerX)
    .widthIs(200)
    .heightEqualToWidth();
    
    UILabel * labelA = [[UILabel alloc]init];
    [self.view addSubview:labelA];
    labelA.textColor = BVBaseTextBlackColor;
    labelA.font = [UIFont systemFontOfSize:13];
    labelA.textAlignment = NSTextAlignmentCenter;
    labelA.text = @"扫描二维码 进入公众号";
    labelA.sd_layout
    .topSpaceToView(img,0)
    .centerXIs(self.view.centerX)
    .widthIs(200)
    .autoHeightRatio(0);
    
    UILabel * labelC = [[UILabel alloc]init];
    [self.view addSubview:labelC];
    labelC.textColor = BVBaseTextBlackColor;
    labelC.font = [UIFont systemFontOfSize:13];
    labelC.text = @"公司地址: 山东省济南市华龙路嘉恒商务大厦A座603";
    labelC.sd_layout
    .bottomSpaceToView(self.view,20)
    .leftSpaceToView(self.view,5)
    .rightSpaceToView(self.view,0)
    .autoHeightRatio(0);
    
    UILabel * labelB = [[UILabel alloc]init];
    [self.view addSubview:labelB];
    labelB.textColor = BVBaseTextBlackColor;
    labelB.font = [UIFont systemFontOfSize:13];
    labelB.text = @"公司名称: 济南银鼎网络科技有限公司";
    labelB.sd_layout
    .bottomSpaceToView(labelC,10)
    .leftSpaceToView(self.view,5)
    .rightSpaceToView(self.view,0)
    .autoHeightRatio(0);
    
    
}
- (void)backClick {
    [self.navigationController popViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
